package com.xiaoran.springcloud.alibaba.service;


import com.xiaoran.springcloud.alibaba.domain.CommResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @PostMapping(value = "/storage/decrease")
    CommResult decrease(@RequestParam("product_id") Long product_id,@RequestParam("count") Integer count);

}
